home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / httpd-3.0-t / httpd-3 / usr / local / lib / httpd / config / caching.conf < prev    next >
Encoding:
Text File  |  1994-06-11  |  1.9 KB  |  94 lines

  1. #
  2. #    Sample configuration file for cern_httpd for running it
  3. #    as a proxy server WITH caching.
  4. #
  5. # See:
  6. #    <http://info.cern.ch/hypertext/WWW/Daemon/User/Config/Overview.html>
  7. #
  8. # for more information.
  9. #
  10. # Written by:
  11. #    Ari Luotonen  April 1994  <luotonen@dxcern.cern.ch>
  12. #
  13.  
  14. #
  15. #    Set this to point to the directory where you unpacked this
  16. #    distribution, or wherever you want httpd to have its "home"
  17. #
  18. ServerRoot    /where/ever/server_root
  19.  
  20. #
  21. #    Set the port for proxy to listen to
  22. #
  23. Port    8080
  24.  
  25. #
  26. #    General setup; on some systems, like HP, nobody is defined so
  27. #    that setuid() fails; in those cases use a different user id.
  28. #
  29. UserId    nobody
  30. GroupId    nogroup
  31.  
  32. #
  33. #    Logging; if you want logging uncomment these lines and specify
  34. #    locations for your access and error logs
  35. #
  36. # AccessLog    /where/ever/proxy-log
  37. # ErrorLog    /where/ever/proxy-errors
  38. LogFormat    Common
  39. LogTime        LocalTime
  40.  
  41. #
  42. #    Proxy protections; if you want only certain domains to use
  43. #    your proxy, uncomment these lines and specify the Mask
  44. #    with hostname templates or IP number templates:
  45. #
  46. # Protection PROXY-PROT {
  47. #     ServerId    YourProxyName
  48. #     Mask        @(*.cern.ch, 128.141.*.*, *.ncsa.uiuc.edu)
  49. # }
  50. # Protect  *  PROXY-PROT
  51.  
  52. #
  53. #    Pass the URLs that this proxy is willing to forward.
  54. #
  55. Pass    http:*
  56. Pass    ftp:*
  57. Pass    gopher:*
  58. Pass    wais:*
  59.  
  60. #
  61. #    Enable caching, specify cache root directory, and cache size
  62. #    in megabytes
  63. #
  64. Caching        On
  65. CacheRoot    /your/cache/root/dir
  66. CacheSize    5
  67.  
  68. #
  69. #    Specify absolute maximum for caching time
  70. #
  71. CacheClean    *    2 months
  72.  
  73. #
  74. #    Specify the maximum time to be unused
  75. #
  76. CacheUnused    http:*        2 weeks
  77. CacheUnused    ftp:*        1 week
  78. CacheUnused    gopher:*    1 week
  79.  
  80. #
  81. #    Specify default expiry times for ftp and gopher;
  82. #    NEVER specify it for HTTP, otherwise documents generated by
  83. #    scripts get cached which is usually a bad thing.
  84. #
  85. CacheDefaultExpiry    ftp:*        10 days
  86. CacheDefaultExpiry    gopher:*    2 days
  87.  
  88. #
  89. #    Garbage collection controls; daily garbage collection at 3am;
  90. #
  91. Gc        On
  92. GcDailyGc    3:00
  93.  
  94.